package com.yh.sqlSession;

import com.yh.pojo.Configuration;
import com.yh.pojo.MappedStatement;

import java.beans.IntrospectionException;
import java.sql.SQLException;
import java.util.List;

public interface Executor {
    public <E> List<E> query(Configuration configuration, MappedStatement mappedStatement,Object... params) throws Exception;

    int insert(Configuration configuration, MappedStatement mappedStatement, Object o) throws SQLException, ClassNotFoundException, Exception;

    int delete(Configuration configuration, MappedStatement mappedStatement, Object arg) throws Exception;

    int update(Configuration configuration, MappedStatement mappedStatement, Object arg) throws Exception;
}
